#include<cstdio>
#include<iostream>
#include<string>
using namespace std;
int main(){
	string a;
	getline(cin,a);
	if(a.find("++",0)==-1){
		int pos=a.find("--",0);
		if(a[pos-1]=='x'){
			cout<<"--"<<"Suffix";
		}
		else{
			cout<<"--"<<"prefix";
		}
	}
	else{ 
		int pos=a.find("++",0);
			if(a[pos-1]=='x'){
			cout<<"++"<<"Suffix";
		}
		else{
			cout<<"++"<<"prefix";
		}
	}
}
